package com.cxf.windex.rest;

import com.cxf.windex.base.msg.ObjectRestResponse;
import com.cxf.windex.base.util.EncryptUtil;
import com.cxf.windex.entity.WeiContents;
import io.swagger.annotations.ApiOperation;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author chenxf
 * @date 3/20/2018
 * @description
 */
@Controller
@RequestMapping("qr")
public class QrController {
  @ApiOperation(value="跳转", notes="跳转")
  @RequestMapping(value = "/sendWx", method = RequestMethod.GET)
  @ResponseBody
  public void edit(HttpServletResponse response,String wxUrl) throws IOException {

    response.sendRedirect(wxUrl);
  }
}
